|
|
Hello,
I have been unable to get by a transparency problem.
I've sited two movies the 1st being,
http://xenomechanics.com/pics/shelf_good.mpg (377 kB)
which was generated from 20 frames. The books in the movie start in the 1st
frame with a transparency = 0.0 max_trace_level =5, and end with
transparency =1.0 max_trace_level =14. As you'll see there are white
shadow where the books were almost like they had an index of refraction
(ior) not equal to air. Originally I had the black shadow problem where it
was supposed to be transparent and I think I fixed that by gradually
increasing the max_trace_level to 14 (which was costly, last one
rendering at 14 hours).
The books are enclosed in a macro, and object and a mesh2. The code is
lengthily and I've tried to enclose what seems relevant.
.....// clock = t9
global_settings { charset utf8
max_trace_level int((clock-t8)/(t9-t8)*9 +5) }...
#declare ambient1 = .1;
#declare diffuse1 =.6 ;
#declare reflection1 = .3;
#declare phong1 = .9;
#declare phongS1 = 60; ...
#macro
bookMacro(scaleVect,transVect,rotateVect,colorVect,bt,ambient1,diffuse1,reflection1,phong1,phongS1)...
#declare bPong = .5;...
object{ mesh2 {...
texture_list { 2,texture { pigment { color rgbt
<colorVect.x,colorVect.y,colorVect.z,( (clock-t8)/(t9-t8) )> }
finish { ambient ambient1 diffuse diffuse1 reflection
reflection1 phong bPong phong_size phongS1}}...
The 2nd movie is
http://xenomechanics.com/pics/shelf_trans.mpg (213 kB)
This is only an example of what I would of expected it to turn out like.
This has 21 frames, only the 1st and last were rendered. The other frames
are interpolated with a MATLAB script. But cheating is very limiting in
that nothing else can be going on in the ie. moving the camera.
Thanks for any help available,
Tony
ton### [at] xenomechanicscom
Post a reply to this message
|
|